<div class="silk-cms-lightbox-header">
    <!--<h3 tal:define="type object/getType"><tal:block tal:content="type/name|default"/> <tal:block i18n:translate="string:Permissions"/></h3>-->
    <h5 tal:content="php:object.name"/>
</div>
<form method="post" tal:condition="not:suppress_form">

    <div class="silk-cms-tabs">
	<ul>
	    <li><a href="#role-permissions" i18n:translate="string:Roles"></a></li>
	    <li><a href="#user-permissions" i18n:translate="string:Users"></a></li>
	</ul>
	<div id="role-permissions" tal:content="structure php:this.renderPartial('object/role_permissions', array('object' => object, 'privileges' => privileges, 'roles' => roles, 'resource' => resource))"></div>
	<div id="user-permissions" tal:content="structure php:this.renderPartial('object/user_permissions', array('object' => object, 'privileges' => privileges, 'owner' => owner, 'resource' => resource, 'users' => users))"></div>
    </div>
    <div class="silk-cms-form-buttons">
	<input type="submit" name="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"  i18n:attributes="value Cancel"/>
	<input type="submit" name="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"  i18n:attributes="value Update"/>
    </div>
</form>

<tal:block tal:condition="suppress_form">
    <div class="silk-cms-tabs">
	<ul>
	    <li><a href="#role-permissions" i18n:translate="string:Roles"></a></li>
	    <li><a href="#user-permissions" i18n:translate="string:Users"></a></li>
	</ul>
	<div id="role-permissions" tal:content="structure php:this.renderPartial('object/role_permissions', array('object' => object, 'privileges' => privileges, 'roles' => roles, 'resource' => resource))"></div>
	<div id="user-permissions" tal:content="structure php:this.renderPartial('object/user_permissions', array('object' => object, 'privileges' => privileges, 'owner' => owner, 'resource' => resource, 'users' => users))"></div>
    </div>

</tal:block>